//package com.zc.dao;
//
//import java.util.List;
//
//import org.apache.ibatis.annotations.Param;
//import org.apache.ibatis.annotations.Result;
//import org.apache.ibatis.annotations.Results;
//import org.apache.ibatis.annotations.Select;
//import org.springframework.stereotype.Repository;
//
//import com.zc.domain.FaultItem;
//import com.zc.domain.FourPointsItem;
//import com.zc.domain.Item;
//
//@Repository
//public interface IDataDao {
//	
//	@Select("SELECT TimeStamp,GS FROM ${tableName} ORDER BY TimeStamp DESC LIMIT 24;")
//	@Results({
//		@Result(column = "TimeStamp",property = "timeStamp"),
//		@Result(column = "GS",property = "data")
//	})
//	List<Item> getTickCount(@Param("tableName") String tableName);
//	
//	@Select("SELECT TimeStamp,GL FROM ${tableName} ORDER BY TimeStamp DESC LIMIT 1;")
//	@Results({
//		@Result(column = "TimeStamp",property = "timeStamp"),
//		@Result(column = "GL",property = "data")
//	})
//	List<Item> getPower(@Param("tableName") String tableName);
//	
//	@Select("SELECT TimeStamp,GLYS FROM ${tableName};")
//	@Results({
//		@Result(column = "TimeStamp",property = "timeStamp"),
//		@Result(column = "GLYS",property = "data")
//	})
//	List<Item> getPowerFactor(@Param("tableName") String tableName);
//	
//	@Select("SELECT TimeStamp,yl FROM ${tableName} LIMIT 24;")
//	@Results({
//		@Result(column = "timeStamp",property = "timeStamp"),
//		@Result(column = "yl",property = "data")
//	})
//	List<Item> getPressure(@Param("tableName") String tableName);
//	
//	@Select("SELECT timestamp,wd1,wd2,wd3,wd4 FROM ${tableName} ORDER BY timestamp DESC LIMIT 24;")
//	@Results({
//		@Result(column = "timeStamp",property = "timeStamp"),
//		@Result(column = "wd1",property = "data_1"),
//		@Result(column = "wd2",property = "data_2"),
//		@Result(column = "wd3",property = "data_3"),
//		@Result(column = "wd4",property = "data_4"),
//	})
//	List<FourPointsItem> getTemperature(@Param("tableName") String tableName);
//	
//	@Select("SELECT channel,gzname,timestamp FROM gz ORDER BY timestamp DESC LIMIT 7;")
//	@Results({
//		@Result(column = "timestamp",property = "timeStamp"),
//		@Result(column = "channel",property = "channel"),
//		@Result(column = "gzname",property = "name")
//	})
//	List<FaultItem> getCurFault();
//	
//	@Select("SELECT channel,gzname,timestamp FROM gz ORDER BY timestamp DESC;")
//	@Results({
//		@Result(column = "timestamp",property = "timeStamp"),
//		@Result(column = "channel",property = "channel"),
//		@Result(column = "gzname",property = "name")
//	})
//	List<FaultItem> getAllFault();
//}
